def detectCapital(st):
    import re
    l = ['Python', 'Java', 'MachineLearning', 'DataMining']

    strs = st.split(' ')
    # 句中首字母大写
    if strs[0][0] != strs[0][0].upper():
        return False

    for s in strs:
        # 判断是否固定词
        if s.upper() in l:
            if s.upper != s:
                return False
        # 判断是否为全部大写
        if s.upper() != s:
            return False
        # 判断是否是数字+字母
        if re.findall('\d+',s):
            t = re.findall('[A-Za-z].*')
            if t:
                if t[0].upper() != t[0]:
                    return False

    else:
        return True



print(detectCapital("I love python"))